package top.pmwly.common.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author Herther
 * @version 1.0.0
 * @ClassName userParam.java
 * @Description 用户登录请求参数
 * @createTime 2021年09月21日 19:13:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserLoginParam对象",description = "登录请求参数对象")
public class UserLoginParam {

    @NotNull(message = "账号不能为空")
    @ApiModelProperty(value = "用户账号",required = true)
    private String userName;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;



}
